﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.AsyncMail.Business.Data {
	public interface IASyncMailDataAccess {

        int SaveMail(int templateId, string bindObject, Type bindType, string receiverMail, string receiverDisplayName, string messageTitle);
		ASyncMailData GetTopMail();
		ASyncMailData GetMailByRequest(int requestId);
		void MarkAsSended(int requestId);
        void MarkSendError(int requestId, string errorMessage);

    }
}
